﻿@using Web.Infrastructure.Extensions
@{
    Layout = string.Format("~/Views/Shared/EditorTemplates/_EditorTemplateLayout.cshtml");
    var selectedValue = (Model == null) ? null : Convert.ToInt32(Model).ToString();
}

@model Enum

<div class="clearfix">
    @Html.DropDownList("", new SelectList(Model.EnumToLocalizedDictionary(false), "Key", "Value", selectedValue ?? ""), ViewData)
</div>